package com.example.dzbsh;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableScheduling
@ServletComponentScan
//@SpringBootApplication(scanBasePackages = {"com.example.jingshangjianguanmanage.dao","com.*"})
@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class,DataSourceTransactionManagerAutoConfiguration.class, MybatisAutoConfiguration.class})
@ComponentScan(basePackages = "com.example.dzbsh.*")
@EnableTransactionManagement

public class DzBshApplication {

    public static void main(String[] args) {
        SpringApplication.run(DzBshApplication.class, args);
    }

	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(DzBshApplication.class);
    }
}
